import request from '@/utils/request'

// 查询告警规则管理
export function page(query) {
  return request({
    url: '/warning/message/page',
    method: 'get',
    params: query
  })
}
// 查询告警规则管理
export function add(data) {
  return request({
    url: '/warning/message/save',
    method: 'put',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/warning/message/update',
    method: 'put',
    data: data
  })
}
export function details(data) {
    return request({
      url: '/warning/configuration/delete',
      method: 'post',
      data:data
    })
  }


export function del(data) {
  return request({
    url: '/warning/configuration/delete',
    method: 'post',
    data:data
  })
}
